OpenIL Function List
--------------------


GLboolean ILAPIENTRY ilAddAlpha(GLvoid);
Adds an alpha channel to a 24-bit image.

GLboolean ILAPIENTRY ilAddAlphaKey(GLvoid *Key);
Adds an alpha channel to a 24-bit image, replacing all pixels matching Key with a transparent alpha.

GLboolean ILAPIENTRY ilAlphaFunc(GLubyte *KeyColour, GLuint Bpp);
Similar to ilAddAlphaKey, but sets the default transparent colour (not used for anything yet).

GLvoid ILAPIENTRY ilBindImage(GLenum Target, GLuint Image);
Binds an image from the image stack to be the current image so it can be used.

GLboolean ILAPIENTRY ilClearImage(GLvoid);
Clears the image to all zeros.

GLboolean ILAPIENTRY ilClearImageTo(GLubyte *ClearTo);
Clears the image to ClearTo (must be same bpp).

GLboolean ILAPIENTRY ilConvertImage(GLenum DestType);
Converts the current image to a DestType format.

GLboolean ILAPIENTRY ilCopyImage(GLuint Src);
Copies image number Src from the image stack to the current binded image.

GLvoid ILAPIENTRY ilCopyPixels(GLuint XOff, GLuint YOff, GLuint Width, GLuint Height, GLenum Format, GLvoid *Data);
Copies pixels to the Data buffer for the user's own use.  Right now, Format must match the image's format.

GLboolean ILAPIENTRY ilCreateDefaultTex(GLvoid);
Creates a 64x64 black and yellow checkerboard pattern as the current image.  Very very ugly to use, so it may be useful when an image cannot be loaded.

GLvoid ILAPIENTRY ilDefaultStates(GLvoid);
Set all states to their default (useful if you really really messed-up or have changed too many states to change them all back easily).

GLvoid ILAPIENTRY ilDeleteImages(GLsizei Num, const GLuint *Images);
Delete the array of Num of Images from the stack.

GLboolean ILAPIENTRY ilDisable(GLenum Mode);
Disable a particular feature of OpenIL.

GLboolean ILAPIENTRY ilEnable(GLenum Mode);
Enable a particular feature of OpenIL.

GLboolean ILAPIENTRY ilFlipImage(GLvoid);
Flips an image vertically.

GLvoid ILAPIENTRY ilGenImages(GLsizei Num, GLuint *Textures);
Generates a list of Textures that can be bound and used on the image stack.

GLboolean ILAPIENTRY ilGetBoolean(GLenum Mode);
Gets the current Mode value.

GLvoid ILAPIENTRY ilGetBooleanv(GLenum Mode, GLboolean *Param);
Gets the current Mode value.

GLenum ILAPIENTRY ilGetError(GLvoid);
Returns the last error that occured and remove this error from the error stack.

GLvoid ILAPIENTRY ilGetFloat(GLenum Mode);
Gets the current Mode value.

GLfloat ILAPIENTRY ilGetFloatv(GLenum Mode, GLfloat *Param);
Gets the current Mode value.

GLint ILAPIENTRY ilGetInteger(GLenum Mode);
Gets the current Mode value.

GLvoid ILAPIENTRY ilGetIntegerv(GLenum Mode, GLint *Param);
Gets the current Mode value.

GLubyte ILAPIENTRY ilGetBppFormat(GLenum Format);
Returns the bpp of Format.

GLubyte ILAPIENTRY ilGetBppPal(GLenum PalType);
Returns the bpp of PalType.

GLubyte ILAPIENTRY ilGetBppType(GLenum Type);
Returns the bpp of Type.

const GLvoid* ILAPIENTRY ilGetState(GLenum Mode);
Returns the current Mode pointer.

const char*	ILAPIENTRY ilGetString(GLenum StringName);
Gets a string denoting information about the current OpenIL.

GLboolean ILAPIENTRY ilIsDisabled(GLenum Mode);
Returns whether Mode is disabled.

GLboolean ILAPIENTRY ilIsEnabled(GLenum Mode);
Returns whether Mode is enabled.

GLboolean ILAPIENTRY ilLoadImage(char *FileName);
Loads an image based on the extension of FileName.

GLboolean ILAPIENTRY ilLoadColPal(char *FileName);
Loads a .col palette file into the current bound image.

GLboolean ILAPIENTRY ilLoadJascPal(char *FileName);
Loads a Paint Shop Pro .pal palette file into the current bound image.

GLboolean ILAPIENTRY ilOriginFunc(GLenum Mode);
Sets the default origin to Mode.

GLboolean ILAPIENTRY ilOverlayImage(GLuint Src, GLint XCoord, GLint YCoord, GLint ZCoord, GLubyte *KeyColour);
Overlays the Src image on top of the current bound image, using KeyColour as the transparent values (if no alpha channel is present - else KeyColour is ignored).

GLvoid ILAPIENTRY ilPopAttrib(GLvoid);
Pop the top attribute node off the attribute stack.

GLvoid ILAPIENTRY ilPushAttrib(GLuint Bits);
Push a new attribute node on the attribute stack.

GLboolean ILAPIENTRY ilRemoveAlpha(GLvoid);
Remove the alpha channel from a 32-bit image.

GLboolean ILAPIENTRY ilSaveImage(char *FileName);
Saves an image based on the extension of FileName.

GLubyte* ILAPIENTRY ilTexSubImage1d(GLuint XOff, GLuint Width);
Not used yet.

GLubyte* ILAPIENTRY ilTexSubImage2d(GLuint XOff, GLuint YOff, GLuint Width, GLuint Height);
Returns a copy of the pixel block defined in the current image format from the current bound image.

GLubyte* ILAPIENTRY ilTexSubImage3d(GLuint XOff, GLuint YOff, GLuint ZOff, GLuint Width, GLuint Height, GLuint Depth);
Not used yet.

GLboolean ILAPIENTRY ilSwapColors(GLvoid);
GLboolean ILAPIENTRY ilSwapColours(GLvoid);
Swaps the r and b values of the current bound image (useful from converting from bgr to rgb and vice-versa).


Image loading and saving (uses the current bound image)

ILAPI GLboolean ILAPIENTRY ilLoadBitmap(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadBitmapF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadBitmapL(GLvoid *Lump, GLuint Size);
.bmp

ILAPI GLboolean ILAPIENTRY ilSaveCHeader(char *FileName, char *InternalName);
.h

ILAPI GLboolean ILAPIENTRY ilLoadCut(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadCutF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadCutL(GLvoid *Lump, GLuint Size);
.cut

ILAPI GLboolean ILAPIENTRY ilLoadDoom(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadDoomF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadDoomL(GLvoid *Lump, GLuint Size);
ILAPI GLboolean ILAPIENTRY ilLoadDoomFlat(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadDoomFlatF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadDoomFlatL(GLvoid *Lump, GLuint Size);
ILAPI GLboolean ILAPIENTRY ilSetDoomPal(GLubyte *NewPal);
no certain extension

ILAPI GLboolean		ILAPIENTRY ilLoadGif(char *FileName);
.gif - not working

ILAPI GLboolean ILAPIENTRY ilLoadCursor(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadCursorF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadCursorL(GLvoid *Lump, GLuint Size);
ILAPI GLboolean ILAPIENTRY ilLoadIcon(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadIconF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadIconL(GLvoid *Lump, GLuint Size);
.ico/.cur - not converted yet

ILAPI GLboolean ILAPIENTRY ilLoadJpeg(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadJpegF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilSaveJpeg(char *FileName, GLuint Quality);
.jpg

ILAPI GLboolean ILAPIENTRY ilLoadPcd(char *FileName, GLuint PicNum);
ILAPI GLboolean ILAPIENTRY ilLoadPcdF(FILE *File, GLuint PicNum);
ILAPI GLboolean ILAPIENTRY ilLoadPcdL(GLvoid *Lump, GLuint Size, GLuint PicNum);
.pcd

ILAPI GLboolean ILAPIENTRY ilLoadPcx(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPcxF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadPcxL(GLvoid *Lump, GLuint Size);
.pcx

ILAPI GLboolean ILAPIENTRY ilLoadPic(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPicF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadPicL(GLvoid *Lump, GLuint Size);
.pic

ILAPI GLboolean ILAPIENTRY ilLoadPng(char *FileName);
.png

ILAPI GLboolean ILAPIENTRY ilLoadPbm(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPgm(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPpm(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPm(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadPmF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadPmL(GLvoid *Lump, GLuint Size);
ILAPI GLboolean ILAPIENTRY ilSavePm(char *FileName, GLboolean Binary);
.pbm/.pgm/.ppm

ILAPI GLboolean ILAPIENTRY ilLoadRaw(char *FileName, GLuint Width, GLuint Height, GLubyte Bpp);
ILAPI GLboolean ILAPIENTRY ilLoadRawF(FILE *File, GLuint Width, GLuint Height, GLubyte Bpp);
ILAPI GLboolean ILAPIENTRY ilLoadRawL(GLvoid *Lump, GLuint Size, GLuint Width, GLuint Height, GLubyte Bpp);
ILAPI GLboolean ILAPIENTRY ilSaveRaw(char *FileName);
.raw

ILAPI GLboolean ILAPIENTRY ilLoadSgi(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadSgiF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadSgiL(GLvoid *Lump, GLuint Size);
.sgi and variants

ILAPI GLboolean ILAPIENTRY ilLoadTarga(char *FileName);
ILAPI GLboolean ILAPIENTRY ilLoadTargaF(FILE *File);
ILAPI GLboolean ILAPIENTRY ilLoadTargaL(GLvoid *Lump, GLuint Size);
ILAPI GLboolean ILAPIENTRY ilSaveTarga(GLbyte *FileName, ILTargaSave *AuthSpec);
.tga

ILAPI GLboolean ILAPIENTRY ilLoadTiff(char *FileName);
.tif
